package com.jhhc.FloodForecast.FloodForecast02.controller;

import com.alibaba.fastjson2.JSONObject;
import com.jhhc.FloodForecast.FloodForecast02.util.HttpUtil;
import com.jhhc.utils.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotEmpty;

/**
 * @author LYQ
 */
@RestController
@RequestMapping(value = "FloodForecast")
@Api(value="FloodForecastController",tags={"洪水预报"})
@Validated
public class FloodForecastController02 {



    @ApiOperation("查询预报模型列表")
    @RequestMapping(value = "/GetForecastBaseInfo", method = RequestMethod.GET)
    private String getForecastBaseInfo(@RequestParam @NotEmpty(message = "项目编号不能为空") String projectId) {
        HttpUtil httpUtil = new HttpUtil();
        String url = "http://180.96.23.207:2111";
        return httpUtil.getForecastBaseInfo(url,projectId);
    }




}
